package com.gupaoedu.pattern.adapter;

/**
 * 2019/9/28
 * created by chenpp
 * 采用持有适配者对象的方式来实现适配
 */
public class MyRestaurantAdapter2 implements  Bar {

    private Restaurant restaurant ;

    public MyRestaurantAdapter2(Restaurant restaurant){
        this.restaurant = restaurant;
    }

    public Restaurant getRestaurant(){
        return this.restaurant;
    }

    public void haveSong() {
        System.out.println("酒吧合并了普通餐厅,兼具酒吧和餐厅功能,更具特色.....");
    }
}
